<template>
  <a-drawer
    :visible="visible"
    title="花儿AI创作"
    placement="right"
    @close="onClose"
    width="1260"
    :bodyStyle="{
      padding: 0,
    }"
    destroyOnClose
  >
    <CreateFixedItem style="width: 100%; height: 100%" />
  </a-drawer>
</template>

<script>
import {
  defineComponent,
  reactive,
  toRefs,
  computed,
  watch,
  toRaw,
  createVNode,
  ref,
  nextTick,
} from "vue";
import CreateFixedItem from "../../CreateFixedItem/index.vue";
import { Form } from "ant-design-vue";
const useForm = Form.useForm;

export default defineComponent({
  name: "CreateDrawer",
  components: {
    CreateFixedItem,
  },
  props: {
    visible: {
      type: Boolean,
      default: false,
    },
  },
  setup(props, { emit }) {
    const state = reactive({});

    const onClose = () => {
      emit("onClose");
    };

    return {
      onClose,
      ...toRefs(state),
    };
  },
});
</script>

<style lang="less" scoped>
.box {
  width: 100%;
  height: 100%;
  .left-box {
    padding: 10px;
    width: 100%;
    height: 95%;
    overflow: hidden auto;
    position: relative;
    padding-bottom: 150px;

    .create-list {
      width: 100%;
      //   height: 180px;
      overflow: auto;
      display: flex;
      flex-wrap: nowrap;
      margin-bottom: 20px;
      .border-list {
        padding: 5px;
        margin: 0 auto;
        border: 2px solid #fff;
        .list {
          width: 150px;
          height: 180px;
          overflow: hidden;
          background-color: rgb(3, 183, 169);
          border-radius: 5px;
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          cursor: pointer;
          padding: 20px;
          padding-bottom: 0;
          text-align: center;
          color: #fff;
          .list-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 5px;
          }
          .list-image {
            width: 104px;
            height: 77px;
          }
        }
        &.border-red {
          border: 2px solid red;
          border-radius: 5px;
        }
      }
    }

    .expand {
      margin-top: 10px;
      color: #aeb3b8;
      cursor: pointer;
    }

    .isMoreParameters {
      margin-top: 10px;
    }
  }
  .fixed-box {
    position: fixed;
    bottom: 10px;
    right: 700px;
    width: 550px;
    box-shadow: 0 -6px 6px -6px #0000002e;
    background: #fff;
    padding: 10px;
  }
  .right-box {
    width: 100%;
    height: 95%;
    overflow: hidden auto;
    background: #fafafc;
    padding: 10px;
    .replace-btn {
      background: #ffdddd;
      color: #2878FF;
      border: none;
      border-radius: 10px;
    }
    .tag-list {
      width: 30px;
      height: 30px;
      text-align: center;
      line-height: 32px;
      background: #f4f5f5;
      border-radius: 5px;
      cursor: pointer;
      margin-right: 10px;
    }
  }
  .pagination-fixed {
    position: fixed;
    right: 20px;
    bottom: 5px;
  }
}
</style>
